package com.example.echarts.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author xiaowei
 * @since 2022-05-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("world_asiangame_info")
public class WorldAsiangameInfo extends Model<WorldAsiangameInfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("year")
    private String year;

    @TableField("country")
    private String country;

    @TableField("gold_medal")
    private Long goldMedal;

    @TableField("silver_medal")
    private Long silverMedal;

    @TableField("bronze_medal")
    private Long bronzeMedal;

    @TableField("total_medal")
    private Long totalMedal;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
